import { get, post, del } from '@/axios'
const moduleUrl = '/classAdmin'
const url = {
	add: moduleUrl + '/add',
	list: moduleUrl + '/list'
}
const getTableData = (params) => {
	return new Promise(resolve => {
		get(url.list, params, content => {
			resolve(content)
		})
	}) 
}
const add = (params, callback ,formObj = null) => {
	post(url.add, params, content => {
		callback(content)
	} , formObj)
}
export default {
	getTableData,
	add
}